package com.yuan.yblog.crud.entity;

import java.io.Serial;
import com.baomidou.mybatisplus.annotation.*;
import java.io.Serializable;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

/**
* @author hepeiyuan
* @date 2024-06-04
*/
@Data
@TableName("user_action")
@Schema(description = "用户行为表")
public class UserAction implements Serializable {
    @Serial
    private static final long serialVersionUID = 1L;

    @Schema(description = "行为id，主键")
    @TableId("id")
    private String id;

    @Schema(description = "用户ID")
    private String userId;

    @Schema(description = "动作类型")
    private String action;

    @Schema(description = "得分")
    private Integer point;

    @Schema(description = "关联的帖子ID")
    private String postId;

    @Schema(description = "关联的评论ID")
    private String commentId;

    @Schema(description = "创建时间")
    private Date created;

    @Schema(description = "修改时间")
    private Date modified;

}